{if $errors}
<div id="errors">
{foreach item=error from=$errors}
<span class="error">{$error}</span><br>
{/foreach}
</div>
{/if}
{if $formResponse}
<div id="formResponse">{$formResponse}</div>
<h3><a href="/{$request->ownerName}/CP/Messages/new">Try sending another message?</a></h3>
{else}
<h3>New Message</h3>
<form {$newMessage.attributes}>
<table align="center" cellspacing="3" width="100%">
	<tr>
        <td align="right" valign="top">
        	{$newMessage.title.label}
        </td>
        <td valign="top" align="left">
            {$newMessage.title.html}
        </td>
	</tr>
	<tr>
        <td align="right" valign="top">
        	{$newMessage.to.label}
        </td>
        <td valign="top" align="left">
            {$newMessage.to.html} {if $newMessage.friendsList} OR {$newMessage.friendsList.html}{/if}
        </td>
	</tr>
	<tr>
        <td align="right" valign="top">
        	{$newMessage.message.label}
        </td>
        <td valign="top" align="left">
            {$newMessage.message.html}
        </td>
	</tr>
	<tr>
    	<td valign="top" align="center" colspan="2">
    	{$newMessage.btnSubmit.html}
        </td>
	</tr>
</table>
</form>
{/if}